<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>变位词</title>
        <script type="text/javascript" src="js/anagram.js"></script>
        <style type="text/css">
            h1{text-align: center}
            div{text-align: center;margin-top: 10px}
        </style>
    </head>
    <body>
        <h1>对小写单词的变位词检测</h1>
        <div>
            <input id="str1" name="str1" value="" type="text" size="50" onkeyup="value = value.replace(/[^a-z]/g,'')">
        </div>
        <div>
            <input id="str2" name="str2" value="" type="text" size="50" onkeyup="value = value.replace(/[^a-z]/g,'')">
        </div>
        <div>
            <button onclick="isAnagram(document.getElementById('str1').value,document.getElementById('str2').value)">
            检测</button>
            <button onclick="reset('str1','str2')">清空</button>
        </div>
    </body>
</html>